﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoyoEden.Models;

namespace CoyoEden.Services
{
    public interface IVoteService
    {
        /// <summary>
        /// Retrieves a Vote from the provider based on the specified id.
        /// </summary>
        Vote SelectVote(int id);
        /// <summary>
        /// Inserts a new Vote into the data store specified by the provider.
        /// </summary>
        void InsertVote(Vote item);
        /// <summary>
        /// Updates an existing Vote in the data store specified by the provider.
        /// </summary>
        void UpdateVote(Vote item);
        /// <summary>
        /// Deletes a Vote from the data store specified by the provider.
        /// </summary>
        void DeleteVote(Vote item);
        /// <summary>
        /// Retrieves all Votes from the provider and returns them in a List.
        /// </summary>
        List<Vote> FillVotes();
    }
}
